<?php

namespace app\controller\index;

use app\result\AmountTypeResult;
use think\App;

class AmountType extends BaseIndex
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new AmountTypeResult();
    }

    public function list()
    {
        data_exit_json($this->objResult->list($this->user_id, $this->param));
    }

    public function get()
    {
        data_exit_json($this->objResult->get($this->user_id, $this->param));
    }

    public function save()
    {
        data_exit_json($this->objResult->save($this->user_id, $this->param));
    }

    public function delete()
    {
        data_exit_json($this->objResult->delete($this->user_id, $this->param));
    }

}
